package com.itouchtv.yang.core.eventListener;

import com.itouchtv.yang.core.tools.ConfigManager;
import com.itouchtv.yang.core.tools.Log;
import org.testng.IExecutionListener;

public class MyExecutionListener implements IExecutionListener {
    @Override
    public void onExecutionStart() {
        String path = Thread.currentThread().getContextClassLoader().getResource("").toString();
        path = path.substring(6,path.length());

        Log.init();
//        ExtentTestNgFormatter.getInstance().setTestRunnerOutput("My output");
        ConfigManager.setProperty("classPath",path);
    }

    @Override
    public void onExecutionFinish() {

    }

}
